package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WdyWalletCollectMapper;
import com.ruoyi.system.domain.WdyWalletCollect;
import com.ruoyi.system.service.IWdyWalletCollectService;
import com.ruoyi.common.support.Convert;

/**
 * 钱包汇总 服务层实现
 * 
 * @author ruoyi
 * @date 2020-03-08
 */
@Service
public class WdyWalletCollectServiceImpl extends ServiceImpl<WdyWalletCollectMapper, WdyWalletCollect> implements IWdyWalletCollectService
{
	/**
     * 查询钱包汇总信息
     * 
     * @param id 钱包汇总ID
     * @return 钱包汇总信息
     */
    @Override
	public WdyWalletCollect selectWdyWalletCollectById(Long id)
	{
	    return baseMapper.selectWdyWalletCollectById(id);
	}
	
	/**
     * 查询钱包汇总列表
     * 
     * @param wdyWalletCollect 钱包汇总信息
     * @return 钱包汇总集合
     */
	@Override
	public List<WdyWalletCollect> selectWdyWalletCollectList(WdyWalletCollect wdyWalletCollect)
	{
	    return baseMapper.selectWdyWalletCollectList(wdyWalletCollect);
	}
	
    /**
     * 新增钱包汇总
     * 
     * @param wdyWalletCollect 钱包汇总信息
     * @return 结果
     */
	@Override
	public int insertWdyWalletCollect(WdyWalletCollect wdyWalletCollect)
	{
	    return baseMapper.insertWdyWalletCollect(wdyWalletCollect);
	}
	
	/**
     * 修改钱包汇总
     * 
     * @param wdyWalletCollect 钱包汇总信息
     * @return 结果
     */
	@Override
	public int updateWdyWalletCollect(WdyWalletCollect wdyWalletCollect)
	{
	    return baseMapper.updateWdyWalletCollect(wdyWalletCollect);
	}

	/**
     * 删除钱包汇总对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWdyWalletCollectByIds(String ids)
	{
		return baseMapper.deleteWdyWalletCollectByIds(Convert.toStrArray(ids));
	}
	
}
